<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.List,java.util.ArrayList, java.util.Iterator" %>
<%@ include file= "../header.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
    <table width="100%">
       <tr class="title">
           <td>id</td>
           <td>ip</td>
           <td>port</td>
           <td>dbName</td>
           <td>username</td>
           <td>password</td>
           <td>jdbcTemplateName</td>
           <td>basePath</td>
           <td>packagePath</td>
           <td>creater</td>
           <td>operate</td>
       </tr>
       
       <c:forEach items="${list }" var="item">
	       <tr>
	       <td>${item.id}</td>
           <td>${item.ip}</td>
           <td>${item.port}</td>
           <td>${item.dbName}</td>
           <td>${item.username}</td>
           <td>${item.password}</td>
           <td>${item.jdbcTemplateName}</td>
            <td>${item.basePath}</td>
           <td>${item.packagePath}</td>
           <td>${item.creater}</td>
           <td>
             <a href="/db/pUpdate.do?id=${item.id}">update</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/db/delete.do?id=${item.id}">delete</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/db/config.do?id=${item.id}">config</a>
           </td>
	       </tr>
       </c:forEach>
       
    </table>
    
    <p align="center">
      <a href="/db/pAdd.do">addDBConfig>>></a>
    </p>
    
</body>
</html>